package com.ruoyi.share.mapper;

import com.ruoyi.share.domain.ShareTitle;
import com.ruoyi.share.domain.ShareViwepager;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShareTitleMapper {
    /**
     * 查询标题
     *
     * @param id 标题主键
     * @return 轮播图
     */
    public ShareTitle selectShareTitleById(Long id);

    /**
     * 查询标题列表
     *
     * @param shareTitle 标题
     * @return 轮播图集合
     */
    public List<ShareTitle> selectShareTitleList(ShareTitle shareTitle);

    /**
     * 新增标题
     *
     * @param shareTitle 标题
     * @return 结果
     */
    public int insertShareTitle(ShareTitle shareTitle);

    /**
     * 修改标题
     *
     * @param shareTitle 轮播图
     * @return 结果
     */
    public int updateShareTitle(ShareTitle shareTitle);

    /**
     * 删除标题
     *
     * @param id 标题主键
     * @return 结果
     */
    public int deleteShareTitleById(Long id);


}
